package com.estate.system.domain.report.boss.agentperformance;

import java.util.HashMap;
import java.util.Map;

public class AgentStats {
    private String agentName;
    private Map<String, Integer> propertyTypeCount; // 物业类型统计
    private Map<String, Integer> transactionTypeCount; // 交易类型统计
    
    // 构造函数
    public AgentStats(String agentName) {
        this.agentName = agentName;
        this.propertyTypeCount = new HashMap<>();
        this.transactionTypeCount = new HashMap<>();
    }
    
    // getter和setter方法
    public String getAgentName() { return agentName; }
    public void setAgentName(String agentName) { this.agentName = agentName; }
    
    public Map<String, Integer> getPropertyTypeCount() { return propertyTypeCount; }
    public void setPropertyTypeCount(Map<String, Integer> propertyTypeCount) { 
        this.propertyTypeCount = propertyTypeCount; 
    }
    
    public Map<String, Integer> getTransactionTypeCount() { return transactionTypeCount; }
    public void setTransactionTypeCount(Map<String, Integer> transactionTypeCount) { 
        this.transactionTypeCount = transactionTypeCount; 
    }
    
    // 添加物业类型数据
    public void addPropertyType(String propertyType, int count) {
        this.propertyTypeCount.put(propertyType, count);
    }
    
    // 添加交易类型数据
    public void addTransactionType(String transactionType, int count) {
        this.transactionTypeCount.put(transactionType, count);
    }
}
